import React from 'react'


export interface Header1Prop {
  title: string,
  hasMargin?: boolean,
}

const Header1: React.FC<Header1Prop> = (props) => {
  return (
    <h1 style={{
      paddingLeft: '10px',
      border: "1px solid gray",
      marginTop: props.hasMargin? "10px": "0px",
      // margin: props.hasMargin? "5px": "0px",
    }}>{props.title}</h1>
  )
}

export default Header1
